#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>

int main()
{
  pid_t id = fork();
  if(id == 0)
  {
    int count = 5;
    while(count)
    {
      printf("子进程，正在运行：%d\n", count--);
      sleep(1);
    }
  }
  else
  {
    while(1)
    {
      printf("父进程,正在运行.......\n");
      sleep(1);
    }
  }
  return 0;
}
